import type { App } from "vue";

export interface OptionsInter {
    id?: string;
    state?: () => Record<string, any>;
    getters?: Record<string, (state?: Record<string, any>) => any>;
    actions?: Record<string, Function>;
    [key: string]: any;
}

export type SetupType = () => Record<string, any>;

export interface piniaInter {
    _store: Map<string, OptionsInter>;
    _plugin: Function[];
    state: Record<string, any>;
    install: (app: App) => void;
    use?: (plugin: Function) => void;
}